package com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow;

import com.glsc.ngateway.common.base.domain.mysql.gateway.FlowFormBaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @author zhengyr
 * @Date 2023-04-16
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Entity
@Where(clause = "deleted = 0" )
@SQLDelete(sql = "update t_gw_flow_form_system_name_modify set deleted = UNIX_TIMESTAMP(NOW()) where id=?")
@SQLDeleteAll(sql = "update t_gw_flow_form_system_name_modify set deleted = UNIX_TIMESTAMP(NOW()) where id=?")
@Table(name = "t_gw_flow_form_system_name_modify")
@org.hibernate.annotations.Table(appliesTo = "t_gw_flow_form_system_name_modify", comment = "系统名称变更流程form表单")
public class FlowFormSystemNameModify extends FlowFormBaseEntity {

    private static final long serialVersionUID = -7719147796229211320L;

    //业务数据

    @Column(name = "system_class_no", columnDefinition = "varchar(10) comment '系统编号'")
    private String systemClassNo;

    @Column(name = "op_name_Old", columnDefinition = "varchar(64) comment '系统名称变更前'")
    private String opNameOld;

    @Column(name = "op_name", columnDefinition = "varchar(64) comment '系统名称变更后'")
    private String opName;

    @Column(name = "system_importance", columnDefinition = "varchar(30) comment '重要性'")
    private String systemImportance;

    @Column(name = "appendices_file_id_list", columnDefinition = "Text comment '附件'")
    private String appendicesFileIdList;

}
